package com.fcg.nginxlog.dao;

import com.fcg.nginxlog.bean.AccessLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author FCG
 */
public interface AccessLogDao {
    /**
     * 日志存储在DB
     *
     * @param accessLogList 日志列表
     * @return done cnt
     */
    int saveLogs(@Param("list") List<AccessLog> accessLogList);

    /**
     * 单条日志存储DB
     *
     * @param accessLog accessLog
     * @return done cnt
     */
    int saveLog(AccessLog accessLog);

}
